package pattern.creational.builder;

/**
 * @author: chaoyang.ren
 * @date:Jul 13, 2017
 * @time:3:33:40 PM
 * @email:chaoyang.ren@foxmail.com
 * @version: 1.0
 */
public class Test {
	public static void main(String[] args) {
		Builder builder = new ConcreteBuilder();
		// 把建造者注入导演
		Director director = new Director(builder);
		// 指挥者负责流程把控
		director.construct();
		// 建造者返回一个组合好的复杂产品对象
		Product product = builder.getProduct();
		System.out.println(product);
	}
}
